<?php
/**
 * Created by JetBrains PhpStorm.
 * User: dodasso
 * Date: 7/19/13
 * Time: 11:17 PM
 * To change this template use File | Settings | File Templates.
 */

namespace common;

require_once(APP_ROOT . '/modules/log/log.php');
require_once(APP_ROOT . '/modules/log/logCommon.php');

use log\Log;
use log\LogCommon;

class Common {
    // For hashing and encryption.
    const secret = "1234567890";
    const salt   = "!kQm*fF3pXe1Kbm%9";

    // Modules
    const noneModule      = 0;
    const inventoryModule = 1;
    const salesModule     = 2;

    // Common status
    const statusEnabled  = 0;
    const statusDisabled = 1;
    const statusBlocked  = 2;

    // User roles
    const roleNone        = 0;
    const roleAdmin       = 1;
    const roleInvAdmin    = 100;
    const roleInvControl  = 102;
    const roleInvOperator = 103;
}